package com.tom.constant;

public class SystemConstant {
    public static final int SUCCESS_CODE = 200;

    public static final int FAIL_CODE = 201;
    public static final int DEFAULT_FAIL_CODE = -1;              // 服务器端失败错误码
    public static final int PARAMETER_INVALID_CODE = -2;         // 客户端传参失败错误码

    /**
     * 无法获取文章
     */
    public static final int CAN_NOT_GET_ARTICLE_CODE = 10001;

    /**
     * 无法生成JSON文件
     */
    public static final int CAN_NOT_PRODUCE_ARTICLE_JSON_CODE = 10002;    // 新增异常

    /**
     * 文章无法找到与之对应的频道
     */
    public static final int CHANNEL_NOT_FOUND_CODE = 10003;

    /**
     * 更新数据库失败
     */
    public static final int CAN_NOT_UPDATE_DATABASE_COED = 10004;

    /**
     * 无法保存文章
     */
    public static final int CAN_NOT_SAVE_ARTICLE_JSON_COED = 10005;

    /**
     * 付费文章缺少期刊号
     */
    public static final int JOURNAL_INVALID_CODE = 10006;

    /**
     * 缺少标题
     */
    public static final int TITLE_INVALID_CODE = 10007;

    /**
     * 缺少正文
     */
    public static final int CONTEXT_INVALID_CODE = 10008;

    /**
     * 文章已存在
     */
    public static final int INSERT_FAIL_CODE = 10009;    // 新增异常

    /**
     * 更新文章出现问题
     */
    public static final int UPDATE_FAIL_CODE = 10010;    // 修改异常

    /**
     * 删除过程中出现问题
     */
    public static final int DELETE_FAIL_CODE = 10011;    // 删除异常

    /**
     * 无效发布时间
     */
    public static final int INVALID_PUBLISH_COED = 10012;    // 无效发布时间
    public static final String SUCCESS_MSG = "操作成功";
    public static final String FAIL_MSG = "服務處理異常";

    /**
     * 远程调用失败
     */
    public static final int REMOTE_CALL = -2;
}
